<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">所属数据分组:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[datatype]', $datatypeList, null, ['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">值1:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="dateperiod" name="row[dateperiod]" value="" data-rule="required;dateperiod" />
        </div>
        <div>时间段如：08:00-09:00</div>
    </div>
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">值2:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="pn" name="row[pn]" value=""  />
        </div>
        <div>时间段如：9</div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control" id="sort" name="row[sort]" value=""  />
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_radios('row[status]', ['1'=>'正常', '0'=>'禁止'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>